how to differentiate when x is the power